import { createRouter, createWebHistory } from "vue-router";
import SingleLayout from "@/layout/singleLayout.vue";
import Login from "@/views/login.vue";
import appInfo from "@/views/appInfo.vue";
const router = createRouter({
	history: createWebHistory(import.meta.env.BASE_URL),
	routes: [
		{
			path: "/",
			component: SingleLayout,
			children: [
				{
					path: "/",
					component: () => import("@/views/apiDoc.vue"),
				},
				{
					path: "/register",
					component: () => import("@/views/register.vue"),
				},
				{
					path: "/login",
					component: Login,
				},
				{
					path: "/appInfo",
					component: appInfo,
				},
				{
					path: "/apiDoc",
					component: () => import("@/views/apiDoc.vue"),
				},
				{
					path: "/debugUtil",
					component: () => import("@/views/debugUtil.vue"),
				},
				{
					path: "/apiLog",
					component: () => import("@/views/apiLog.vue"),
				},
			],
		},
	],
});

export default router;
